package cn.edu.neusoft.yuejian4.yuejian_4.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import cn.edu.neusoft.yuejian4.yuejian_4.R;

/**
 * Created by Lix on 2018/10/login_bg2.
 */

public class MySetActivity extends AppCompatActivity implements View.OnClickListener {
    private ImageView back;
    private TextView jiben,updataimg,updatapassword;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my_set);
        initView();
        initEvent();
    }
    private void initView(){
        back = (ImageView)findViewById(R.id.my_set_back);
        jiben = (TextView)findViewById(R.id.jiben);
        updataimg = (TextView)findViewById(R.id.updateimg);
        updatapassword = (TextView)findViewById(R.id.updatapassword);
    }
    private void initEvent(){
        back.setOnClickListener(this);
        jiben.setOnClickListener(this);
        updataimg.setOnClickListener(this);
        updatapassword.setOnClickListener(this);

    }
    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.my_set_back:
                finish();
                break;
            case R.id.jiben:
                Intent intent = new Intent(MySetActivity.this,MyBaseSetActivity.class);
                startActivity(intent);
                break;
            case R.id.updateimg:
                Intent intent1 = new Intent(MySetActivity.this,MySetHeadpicActivity.class);
                startActivity(intent1);
                break;
            case R.id.updatapassword:
                Intent intent2 = new Intent(MySetActivity.this,MySetPasswordActivity.class);
                startActivity(intent2);
                break;
        }

    }
}
